<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/8
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
<title>智能锁管理</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">

<link href="${pageContext.request.contextPath}/static/css/KeysManager/LockManager.css?v=1" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/js/KeysManager/index.js?sate=4"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery.form.js" ></script>
<style type="text/css">
</style>
</head>
<body style="padding-top: 15px;">

	<div class="box">
		<a href="${pageContext.request.contextPath}/admin/tkeys_sendView4App.action"" class="item"> 
			<%-- <img src="${pageContext.request.contextPath}/static/images/KeysManager/key.png" class="icon" /> --%> 
			<span class="text">发钥匙</span>
			<img src="${pageContext.request.contextPath}/static/images/KeysManager/rt_arrows.png" class="icon" />
			
		</a>
	</div>

	<div class="box">
		<a href="${pageContext.request.contextPath}/admin/tkeys_listViewApp.action" class="item"> 
			<span class="text">用户管理</span>
			
			<img src="${pageContext.request.contextPath}/static/images/KeysManager/rt_arrows.png" class="icon" /> 
			<div class="red_point" id='red_point' style="display:none;"></div>
		</a>
	</div>

	<div class="box">
		<a href="${pageContext.request.contextPath}/admin/openlog_listView4App.action" class="item"> 
			<%-- <img src="${pageContext.request.contextPath}/static/images/KeysManager/log.png" class="icon" />  --%>
			<img src="${pageContext.request.contextPath}/static/images/KeysManager/rt_arrows.png" class="icon" />
			<span class="text">开门日志</span>
		</a>
	</div>

	<div class="box">
		<a href="${pageContext.request.contextPath}/admin/tlocks_listViewApp.action" class="item"> 
			<%-- <img src="${pageContext.request.contextPath}/static/images/KeysManager/details.png" class="icon" />  --%>
			<img src="${pageContext.request.contextPath}/static/images/KeysManager/rt_arrows.png" class="icon" />
			<span class="text">智能锁详情</span>
		</a>
	</div>

	<div class="box">
		<a href="${pageContext.request.contextPath}/admin/tlocks_addLockApp.action" class="item" id="addlock"> 
			<%-- <img src="${pageContext.request.contextPath}/static/images/KeysManager/add.png" class="icon" />  --%>
			<img src="${pageContext.request.contextPath}/static/images/KeysManager/rt_arrows.png" class="icon" />
			<span class="text">添加智能锁</span>
		</a>
	</div>
</body>
</html>

<script>
$.ajax({
    type: 'POST',
    url: '${pageContext.request.contextPath}/admin/tkeys_page4Prolong.action?page='+0+'&size=50',
    dataType: 'json',
    success: function(data){
        var arrLen = data.data.length;
        if(arrLen > 0){
            for(var i=0; i<arrLen; i++){
            	if(data.data[i].PSTATE=='1'){
            		$("#red_point").show();
            		return;
            	}
            }
        }
       
    },
    error: function(xhr, type){
    }
});

</script>